import request from "./request"
//分页查询
export const PageQuery = (params) => {
  return request({
    url: "/song/Page",
    method: "get",
    params: params
  })
}
export const SelectSingerById = (id) => {
    return request({
      url: `/song/${id}`,
      method: "get"
    })
  }
export const addSong = (data) => {
return request({
    url: "/song/addSong",
    method: "post",
    data: data
})
}
export const UpdateById = (params) => {
    return request({
      url: "/song/update",
      method: "put",
      data : params
    })
  }
  export const SelectSongById = (id) => {
    return request({
      url: `/song/${id}`,
      method: "get"
    })
  }
  export const DeleteSinger = (id) => {
    return request({
      url: "/song/deleteSong",
      method: "delete",
      params:{
        id : id
      }
    })
  }

  //分页查询
export const AllSong = () => {
  return request({
    url: "/song/allSong",
    method: "get",
  })
}